#ifndef __LXZ_SYSLOGER_H__
#define __LXZ_SYSLOGER_H__

#define LXZ_SYSLOGGER_DEF_DIR "syslog"
#define LST_SYSLOGGER_MAX_PATH 128
#define LXZ_SYSLOGGER_MAX_CACHE 2048

typedef struct _pcap_file_header_t 
{
    uint32 ut_pcap_magic;
    uint16 ut_ver_major;
    uint16 ut_ver_minor;
    uint32 ut_cur_timezone;
    uint32 ut_cur_timestamp;
    uint32 ut_max_snaplength;
    uint32 ut_cur_linktype;
}pcap_filehdr_t;

typedef struct _pcap_packet_header_t 
{
    uint32 it_capture_sec;
    uint32 it_capture_usec;
    uint32 it_capture_len;
    uint32 it_actual_len;
}pcap_packethdr_t;

typedef struct _pcap_packet_mac_t 
{
    uint08 pt_dst_MAC[6];
    uint08 pt_src_MAC[6];
    uint16 it_pl_protocol;
}pcap_packet_mac_t;

typedef struct _pcap_packet_iphdr_t 
{
    uint08 it_ip_VHL;
    uint08 it_ip_field;
    uint16 it_nb_total;
    uint16 it_id_packet;
    uint08 it_ip_flags;
    uint08 it_ip_offset;
    uint08 it_ip_TTL;
    uint08 it_pl_protocol;
    uint16 it_ip_checksum;
    uint32 it_src_ipaddr;
    uint32 it_dst_ipaddr;
}pcap_packet_iphdr_t;

typedef struct _pcap_packet_udphdr_t 
{
    uint16 it_src_port;
    uint16 it_dst_port;
    uint16 it_len_payload;
    uint16 it_udp_checksum;
}pcap_packet_udphdr_t;

sint32 lxzpcap_sysloger_open(uint08* u_rel_dir);
sint32 lxzpcap_sysloger_printf(const char * vfmt, ...);
sint32 lxzpcap_sysloger_close(void);

#endif /* __LXZ_SYSLOGER_H__ */

